import request from '@/utils/request'

//分页+模糊查询
export function getHospSetList(current,limit,data) {
  return request({
    url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
    method: 'POST',
    data:{...data}
  })
}

//删除
export function removeHospSet(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: 'DELETE',
  })
}

//批量删除
export function batchRemoveHospitalSet(params){
   return request({
     url:`/admin/hosp/hospitalSet/batchRemove`,
     method:'DELETE',
     data:params
   })
}

export function lockHospSet(id,status){
  return request({
    url:`/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
    method:'PUT',
  })
}

export function saveHospitalSet(params){
  return request({
    url:'/admin/hosp/hospitalSet/saveHospitalSet',
    method:'POST',
    data:{...params}
  })
}

//根据id获取医院设置
export function getHospSet(id){
  return request({
    url:`/admin/hosp/hospitalSet/getHospSet/${id}`,
    method: 'GET',
  })
}

//修改医院设置信息
export function updateHospitalSet(params){
  return request({
    url: `/admin/hosp/hospitalSet/updateHospitalSet`,
    method: 'POST',
    data:{...params}
  })
}
